# 清理xcode缓存文件
echo "清理xcode缓存文件"
rm -rf ~/Library/Developer/Xcode/DerivedData/*
# 清理archives，使用的时候要注意是否有必须要保留的archives
echo "清理archives"
rm -rf ~/Library/Developer/Xcode/Archives/*
# 清理设备支持文件
echo "清理设备支持文件"
rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport/*
# 清理模拟器文件
echo "清理模拟器文件"
rm -rf ~/Library/Developer/CoreSimulator/Devices/*
# 清理product下的app文件
echo "清理product下的app文件"
rm -rf ~/Library/Developer/Xcode/Products/*
# 清理playground文件
echo "清理playground文件"
rm -rf ~/Library/Developer/XCPGDevices/*
